import request from '@/utils/request'

// 查询采销列表
export function listCx(query) {
  return request({
    url: '/supermarket/cx/list',
    method: 'get',
    params: query
  })
}
// 查询采销列表
export function listCxXs(query) {
  return request({
    url: '/supermarket/cx/listXs',
    method: 'get',
    params: query
  })
}

// 查询采销详细
export function getCx(tId) {
  return request({
    url: '/supermarket/cx/' + tId,
    method: 'get'
  })
}

// 新增采销
export function addCx(data) {
  return request({
    url: '/supermarket/cx',
    method: 'post',
    data: data
  })
}

// 修改采销
export function updateCx(data) {
  return request({
    url: '/supermarket/cx',
    method: 'put',
    data: data
  })
}

// 删除采销
export function delCx(tId) {
  return request({
    url: '/supermarket/cx/' + tId,
    method: 'delete'
  })
}
// 重置
export function delAllCx() {
  return request({
    url: '/supermarket/cx',
    method: 'delete'
  })
}


// 
export function addDd(data) {
  return request({
    url: '/supermarket/cx/Dd',
    method: 'post',
    data: data

  })
}

export function tempDdCc(data) {
  return request({
    url: '/supermarket/cx/tempDdCc',
    method: 'post',
    data: data
  })
}

